package com.lanren.familybookapp.ui.me.interfaces;

import com.lanren.common.base.IView;
import com.lanren.familybookapp.ui.me.bean.BookInfoBean;

import java.util.List;

/**
 * @ClassName IManagerModel
 * @Description TODO
 * @Author chongheng.wang
 * @Date 2019/10/11 14:24
 * @Version 1.0
 */
public interface IManagerModel {
    interface IManagerView extends IView {
        void onSuccess(List<BookInfoBean> bookInfoBeans);
        void addBookSuccess(String msg);
        void useBookSuccess(String msg);
    }

    interface ManagerModel {
        void onError(int code, String msg);

        void onSuccess(List<BookInfoBean> bookInfoBeans);
    }

    interface ManagerBookAddModel {
        void onError(int code, String msg);

        void onSuccess(String msg);
    }
}
